package com.ruoyi.project.system.attribute.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.attribute.mapper.LgbGoodsAttributeMapper;
import com.ruoyi.project.system.attribute.domain.LgbGoodsAttribute;
import com.ruoyi.project.system.attribute.service.ILgbGoodsAttributeService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-28
 */
@Service
public class LgbGoodsAttributeServiceImpl implements ILgbGoodsAttributeService 
{
    @Autowired
    private LgbGoodsAttributeMapper lgbGoodsAttributeMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param goodsAttributeId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public LgbGoodsAttribute selectLgbGoodsAttributeById(Integer goodsAttributeId)
    {
        return lgbGoodsAttributeMapper.selectLgbGoodsAttributeById(goodsAttributeId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param lgbGoodsAttribute 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<LgbGoodsAttribute> selectLgbGoodsAttributeList(LgbGoodsAttribute lgbGoodsAttribute)
    {
        return lgbGoodsAttributeMapper.selectLgbGoodsAttributeList(lgbGoodsAttribute);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param lgbGoodsAttribute 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertLgbGoodsAttribute(LgbGoodsAttribute lgbGoodsAttribute)
    {
        return lgbGoodsAttributeMapper.insertLgbGoodsAttribute(lgbGoodsAttribute);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param lgbGoodsAttribute 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateLgbGoodsAttribute(LgbGoodsAttribute lgbGoodsAttribute)
    {
        return lgbGoodsAttributeMapper.updateLgbGoodsAttribute(lgbGoodsAttribute);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLgbGoodsAttributeByIds(String ids)
    {
        return lgbGoodsAttributeMapper.deleteLgbGoodsAttributeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param goodsAttributeId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteLgbGoodsAttributeById(Integer goodsAttributeId)
    {
        return lgbGoodsAttributeMapper.deleteLgbGoodsAttributeById(goodsAttributeId);
    }
}
